home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turnbull China Bikeride
/
Turnbull China Bikeride - Disc 1.iso
/
ARGONET
/
PD
/
PROGRAMMING
/
DESKLIBC
/
SOURCES.ZIP
/
DeskLib
/
!DLSources
/
Libraries
/
PDriver
/
DLL
/
MkStubsOs
< prev
next >
Wrap
Text File
|
1995-07-31
|
3KB
|
137 lines
ObjectFiles = \
o.AbortJob \
o.CancelJob \
o.CancelJobW \
o.CheckFeatu \
o.CurrentJob \
o.DrawPage \
o.EndJob \
o.EnumerateJ \
o.GetRectang \
o.GiveRectan \
o.Info \
o.InsertIllu \
o.PageSize \
o.PrintrName \
o.ScreenDump \
o.SelectIllu \
o.SelectJob \
LibName = PDriver
# Template makefile to make all .o files
# and the SDLS Stubs file for DeskLib
# sublibraries.
# Julian Smith 16 Mar 1995.
# The macro $(ObjectFiles) should be set at the
# start of this file, to be a space-separated
# list of object files.
# This is done by 'Makatic'.
# The macro $(LibName) should also be set at the
# start of this file, to be the name of the
# DeskLib sublibrary.
# This is done by 'Makatic'.
# Compiler and linker flags, These can be anything.
# All flags required by Straylight (eg CC -zM and
# Link -rmf) are included in the macros $(CC) and
# $(LINK).
#
CCFlags = -fahi $(CCExtra) -depend !Depend -throwback -D_DeskLib_$(LibName) -I,C:
ASMFlags = -Stamp -NoCache -CloseExec -Quit $(ASMExtra)
# Macros for commands, including the Straylight
# tool 'cdll'. Note that DRLink doesn't seem to
# work with the SDLS.
#
CC = cc -c -zM -d_DLL -JC:DLLLib.,:mem $(CCFlags)
ASM = ObjAsm $(ASMFlags)
CDLL = cdll
LINK = link
AS = as -dde -throwback
# filename of DLL Stubs aof file. This is linked with client apps.
#
DLL_Stubs = Stubs
# Filenames of intermediate files needed to make $(DLL_Lib) and $(DLL_Stubs).
#
# DLL_Def: Standard definition file as per SDLS docs.
# DLL_OtherStubsSource Assembler source to be partially linked into
# the final stubs file. This will force linking
# in of stubs from any other DLLs used by this
# library when a client application is built.
# DLL_PlainStubs The vanilla stubs file created by SDLS's cdll.
# DLL_OtherStubsObject Assembled from DLL_OtherStubsSource. This
# simply imports __DeskLib_SDLS_Stubs_<libname>'s
# for all DeskLib DLLs used by this library, and
# exports __DeskLib_SDLS_Stubs_<thislibname>.
#
DLL_Def = ^.DLLDef
DLL_OtherStubsSource = ^.OtherStubs
DLL_PlainStubs = PlainStubs
DLL_OtherStubsObject = OSObj
# -------------------------------------------------------
# Everything below here should probably not be changed...
# -------------------------------------------------------
# Now all the rules...
# Here's the two things we want to make...
#
All: $(DLL_Stubs) $(ObjectFiles)
$(DLL_Stubs): $(DLL_PlainStubs) $(DLL_OtherStubsObject)
$(LINK) -aof -o $@ $(DLL_PlainStubs) $(DLL_OtherStubsObject)
$(DLL_PlainStubs): $(DLL_Def)
$(CDLL) -def $(DLL_Def) -stub $(DLL_PlainStubs)
#$(DLL_OtherStubsObject): $(DLL_OtherStubsSource)
# $(AS) -o $(DLL_OtherStubsObject) $(DLL_OtherStubsSource)
$(DLL_OtherStubsObject): $(DLL_OtherStubsSource)
$(ASM) $(ASMFlags) -from $(DLL_OtherStubsSource) -to $(DLL_OtherStubsObject)
$(DLL_Def):
| Warning: No DLL definition file exists.
| Creating a default DLL definition file: $(DLL_Def)
| This will have to be altered by hand.
$(CDLL) -def $(DLL_Def) -obj $(ObjectFiles)
# Rule for compiling C source code for a Straylight dynamically-linked library.
VPATH = @.^
.SUFFIXES: .o .c .s
.c.o:
$(CC) -o $@ $<
.s.o:
$(ASM) $(ASMFlags) -from $< -to $@
# Dynamic dependencies: